package models

import "gorm.io/gorm"

type Shop struct {
	gorm.Model
	Name   string  `gorm:"type:varchar(30);not null;comment:'优惠券名称'"`
	Price  float64 `gorm:"type:decimal(10,2);not null;comment:'优惠金额'"`
	Time   string  `gorm:"type:datetime;not null;comment:'优惠时间'"`
	Num    int     `gorm:"type:int;not null;comment:'发放数量'"`
	Status string  `gorm:"type:enum('是','否');not null;comment:'是否有效'"`
	Author string  `gorm:"type:varchar(30);not null;comment:'发布者'"`
}
